package com.wu.base;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.List;

@ApiModel(description = "分页通用响应返回对象")
public class PageInfoData<T> {

    @ApiModelProperty(value = "总记录数", position = 200)
    private long total;

    @ApiModelProperty(value = "每页记录数", position = 201)
    private int pageSize;

    @ApiModelProperty(value = "总页数", position = 202)
    private int pages;

    @ApiModelProperty(value = "当前页码", position = 203)
    private int currentPage;

    @ApiModelProperty(value = "结果数据", position = 204)
    private List<T> list;

    public PageInfoData() {

    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }
}
